package com.yehuishou.controller;

import java.util.Map;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.yehuishou.service.SearchService;

@Controller
public class SearchController {
	@Resource
	private SearchService searchservice;
	
	@RequestMapping("backitemsearch")
	public String backitemsearch(String bname,HttpServletRequest request){
		Map<String, Object> map=searchservice.backitemsearch(bname);
		request.setAttribute("map", map);
		return "sellitem_show";
	}
	@RequestMapping("aa")
	public String backitemsearc(){

		return "b52";
	}
}
